package redis

import (
	"context"

	"github.com/go-redis/redis/v8"
)

func Link() {
	rdb := redis.NewClient(&redis.Options{
		Password: "Gh080Gh",
		Addr:     "111.229.5.41:8081",
		DB:       0,
	})
	var ctx = context.Background()

	err := rdb.Set(ctx, "key", "value", 0).Err()
	if err != nil {
		panic(err)
	}
}
